@echo off

::
:: Compile the regexes in Bootstrap.rgc, using the previous version of RegexC.exe

if not exist Bootstrap.rgc (
	echo Where am I?
	pause & goto :eof
	)

if not exist "%VSInstallDir%\Common7\IDE\PublicAssemblies\." (
	echo Please set 'VSInstallDir' environment variable to your base VS.NET installation directory 
	echo   eg, C:\Program Files\Microsoft Visual Studio 9.0
	pause & goto :eof
	)

RegexC.exe .\Source\Bootstrap.rgc /out="%VSInstallDir%\Common7\IDE\PublicAssemblies\Jitsu.RegexC.RegularExpressions.dll"
if errorlevel 1 pause
